# 通用爬虫常量
REQUEST_HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
}

# 知乎热榜爬虫常量
ZHIHU_BASE_URL = "https://www.zhihu.com"
ZHIHU_HOT_API = "https://tophub.today/n/mproPpoq6O"

# 36kr热榜爬虫常量
KR_BASE_URL = "https://36kr.com"
KR_NEW_FLASH_URL = "https://www.36kr.com/newsflashes/catalog/0"
KR_WEB_NEWS_URL = "https://www.36kr.com/information/web_news/"
KR_ZONGHE_ARTICLES_BASE_URL = "https://www.36kr.com/hot-list/zonghe/"
KR_BOOKMARK_ARTICLES_BASE_URL = "https://www.36kr.com/hot-list/shoucang/"
KR_HOT_ARTICLES_BASE_URL = "https://www.36kr.com/hot-list/renqi/"

# 百度贴吧热榜爬虫常量
BAIDUTIEBA_HOT_TOPIC_URL = "http://tieba.baidu.com/hottopic/browse/topicList?res_type=1"
BAIDUTIEBA_REQUEST_HEADERS = {
    "Accept": "*/*",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9,en-GB;q=0.8,en-US;q=0.7,en;q=0.6",
    "Host": "tieba.baidu.com",
    "Proxy-Connection": "keep-alive",
    "Referer": "http://tieba.baidu.com/hottopic/browse/topicList?res_type=1",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
    "X-Requested-With": "XMLHttpRequest",
}

# 懂车帝热榜爬虫常量
DONGCHEDI_BASE_URL = "https://www.dongchedi.com/news"

# 抖音热榜爬虫常量
DOUYIN_BASE_URL = "https://www.douyin.com"
DOUYIN_HOT_SEARCH_API = "https://v2.xxapi.cn/api/douyinhot"

# 发现报告爬虫常量
FXBAOGAO_BASE_URL = "https://www.fxbaogao.com"

# 澎湃新闻热榜爬虫常量
THEPAPER_BASE_URL = "https://www.thepaper.cn"
THEPAPER_HOT_ARTICLES_URL = 'https://cache.thepaper.cn/contentapi/wwwIndex/rightSidebar'
THEPAPER_REQUEST_HEADERS = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "origin": "https://www.thepaper.cn",
    "referer": "https://www.thepaper.cn/"
}

# 少数派热榜爬虫常量
SSPAI_BASE_URL = "https://sspai.com"
SSPAI_RECOMMENDED_ARTICLES_API = "https://sspai.com/api/v1/article/index/page/get"
SSPAI_HOT_ARTICLES_API = "https://sspai.com/api/v1/article/tag/page/get"

# 腾讯新闻热点爬虫常量
QQNEWS_BASE_URL = "https://news.qq.com"
QQNEWS_HOT_NEWS_URL = "https://i.news.qq.com/gw/event/pc_hot_ranking_list?ids_hash=&offset=0&page_size=51&rank_id=hot"
QQNEWS_HOT_QA_URL = "https://i.news.qq.com/web_backend/getHotQuestionList"

# 微博热搜爬虫常量
WEIBO_BASE_URL = "https://s.weibo.com"
WEIBO_HOT_SEARCH_URL = "https://weibo.com/ajax/side/hotSearch"

# 小饭桌文章爬虫常量
XFZ_BASE_URL = 'https://www.xfz.cn'
XFZ_NEW_REPORTS_URL = 'https://www.xfz.cn/api/website/articles/?p=1&n=20&type='
XFZ_HOT_REPORTS_URL = 'https://www.xfz.cn/api/website/articles/?p=1&n=20&type=热点'

# IT之家热榜爬虫常量
ITHOME_BASE_URL = "https://www.ithome.com/"
ITHOME_NEW_ARTICLES_URL = "https://m.ithome.com/"
ITHOME_HOT_ARTICLES_URL = "https://m.ithome.com/rankm/"

# chrome驱动路径
CHROME_DRIVER_PATH = "./chromedriver-win64/chromedriver.exe"